{"ast":null,"code":"import * as React from 'react';\nimport useForceUpdate from './useForceUpdate';\nexport default function useSyncState(initialValue) {\n  var ref = React.useRef(initialValue);\n  var forceUpdate = useForceUpdate();\n  return [function () {\n    return ref.current;\n  }, function (newValue) {\n    ref.current = newValue;\n    // re-render\n    forceUpdate();\n  }];\n}","map":{"version":3,"names":["React","useForceUpdate","useSyncState","initialValue","ref","useRef","forceUpdate","current","newValue"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/_util/hooks/useSyncState.js"],"sourcesContent":["import * as React from 'react';\nimport useForceUpdate from './useForceUpdate';\nexport default function useSyncState(initialValue) {\n  const ref = React.useRef(initialValue);\n  const forceUpdate = useForceUpdate();\n  return [() => ref.current, newValue => {\n    ref.current = newValue;\n    // re-render\n    forceUpdate();\n  }];\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,eAAe,SAASC,YAAY,CAACC,YAAY,EAAE;EACjD,IAAMC,GAAG,GAAGJ,KAAK,CAACK,MAAM,CAACF,YAAY,CAAC;EACtC,IAAMG,WAAW,GAAGL,cAAc,EAAE;EACpC,OAAO,CAAC;IAAA,OAAMG,GAAG,CAACG,OAAO;EAAA,GAAE,UAAAC,QAAQ,EAAI;IACrCJ,GAAG,CAACG,OAAO,GAAGC,QAAQ;IACtB;IACAF,WAAW,EAAE;EACf,CAAC,CAAC;AACJ"},"metadata":{},"sourceType":"module"}